package com.riteny.util.exception.properties;

import java.util.Map;

/**
 * @author Riteny
 * 2021/9/10  14:41
 */
public class InternationalizationProfile {

    private static Map<String, Map<String, String>> profiles;

    public static Map<String, Map<String, String>> getProfiles() {
        return profiles;
    }

    public static void setProfiles(Map<String, Map<String, String>> profiles) {
        InternationalizationProfile.profiles = profiles;
    }

    public static String getProfile(String langType, String errorCode) {

        if (profiles.get(langType) != null) {

            return profiles.get(langType).get(errorCode);
        }

        return null;
    }
}
